package ${basePackage}.service;

import ${basePackage}.dao.${modelNameUpperCamel}Mapper;
import ${basePackage}.model.${modelNameUpperCamel};
import ${basePackage}.service.${modelNameUpperCamel}Service;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

/**
 * Created by ${author} on ${date}.
 */
@Service
@Transactional
public class ${modelNameUpperCamel}Service{

    @Autowired
    private ${modelNameUpperCamel}Mapper ${modelNameLowerCamel}Mapper;

    public void save(${modelNameUpperCamel} ${modelNameLowerCamel})
    {
        ${modelNameLowerCamel}Mapper.insertSelective(${modelNameLowerCamel});
    }

    public void deleteById(${modelNameUpperCamel} ${modelNameLowerCamel})
    {

    }

    public void update(${modelNameUpperCamel} ${modelNameLowerCamel})
    {

    }


    public ${modelNameUpperCamel} findById(${modelNameUpperCamel} ${modelNameLowerCamel})
    {

        return null;
    }

    public List<${modelNameUpperCamel}>  list(${modelNameUpperCamel} ${modelNameUpperCamel} , Integer page, Integer size)
    {
        PageHelper.startPage(page, size);
        return null;
    }

}
